#pragma once
#include<iostream>
#include<string>
extern "C" {
//#define BUILDING_LIBCURL 1
#include<curl/curl.h>
}
class HttpClient
{
private:
		HttpClient(void);
public:
	
	std::string &getContent(const char * url);
	virtual ~HttpClient(void);
private:
	CURL *m_curl;
	CURLM *m_handle;
	enum {BUFF_LEN=(BUFSIZ<<5)};
public:
	 static HttpClient* Instance();
	 static std::string m_user_str;
	 static char m_buffer[BUFF_LEN];
	 static HttpClient* sclient;
	
};

